package com.jiahui.account;

import org.achartengine.ChartFactory;
import org.achartengine.GraphicalActivity;
import org.achartengine.GraphicalView;
import org.achartengine.model.CategorySeries;
import org.achartengine.renderer.DefaultRenderer;
import org.achartengine.renderer.SimpleSeriesRenderer;

import android.app.Activity;
import android.app.TabActivity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.Window;
import android.widget.TabHost;

public class ReportActivity extends TabActivity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {

		super.onCreate(savedInstanceState);

		setContentView(R.layout.count);

		TabHost tabHost = getTabHost();
		TabHost.TabSpec spec;
		Intent intent;

		intent = new Intent().setClass(this, AccoutReportActivity.class);
		spec = tabHost.newTabSpec("accountreport")
				.setIndicator(getString(R.string.accountreport)).setContent(intent);
		tabHost.addTab(spec);

		intent = new Intent().setClass(this, IncomeReportActivity.class);
		spec = tabHost.newTabSpec("incomereport")
				.setIndicator(getString(R.string.incomereport)).setContent(intent);
		tabHost.addTab(spec);

		tabHost.setCurrentTab(0);

		

	}

	
}
